/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.mes.action.produce;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.mes.mapper.produce.ServiceProMapper;
public class ServiceProAction extends BaseAction
{
    @Autowired(required=false)
	private ServiceProMapper mapper;
    /**
    售后服务
    */
    
    public Map customer() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_sale=mapper.s_sale(params);
        result.put("s_sale", s_sale);
        
        return result;
    }
    /**
    查看售后服务
    */
    
    public Map viewServicePro() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> t_sale=mapper.t_sale(params);
        SQLMap t_sale_emt=t_sale.getExistfirst();
        result.put("t_sale", t_sale_emt);
        
        return result;
    }
    /**
    修改售后服务
    */
    
    public Map modifyServicePro() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> t_sale=mapper.t_sale(params);
        SQLMap t_sale_emt=t_sale.getExistfirst();
        result.put("t_sale", t_sale_emt);
        
        return result;
    }
    /**
    */
    
    public Map d_sale() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.d_sale(params);
        
        return result;
    }
    /**
    增加售后服务修改
    */
    
    public Map increaseServiceProSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        int CMIDsale_id = mapper.CMIDsale_id(params);
        result.put("CMIDsale_id", CMIDsale_id);
        
        return result;
    }
    /**
    修改售后服务修改
    */
    
    public Map modifyServiceProSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        mapper.modifyServiceProSubmit(params);
        
        return result;
    }
}